docs: add 'Using witr with AI Agents' section - #224
Conversation
AI coding agents hit port-in-use, zombie servers and container confusion during local dev; they chain lsof/ps/netstat/docker ps manually. witr already fixes this via --json but the README never said so. Add section 8 with an AGENTS.md/CLAUDE.md snippet (port, process, and container queries with --json), an optional Claude Code slash command, and a short rationale for not wrapping witr in MCP (shell access + --json is already the one-line structured call). Renumber sections 9-11. Signed-off-by: Yunare Maia <yunare@gmail.com>
|
Hey @yunaremaia 👋🏻 Thanks for putting this together; I think it's a solid direction overall, but a few things to fix up:
Claude Code slash command (optional) Neither adds much value here, so I'd suggest removing both to keep things focused.
Can you: Fix the numbering in the README Thanks again for the work on this! |
…ring Per maintainer review (#224): - Remove 'Claude Code slash command (optional)' and 'Why not an MCP wrapper?' - Expand the AGENTS.md/CLAUDE.md snippet with the structured output contract (--json shape, exit codes incl. 2 = no match, --help pointer) - Renumber: 8.1 Feature Compatibility Matrix -> 9.1 (Platform Support is now 9) Signed-off-by: Yunare Maia <yunare@gmail.com>
|
All three review points addressed — pushed (
Thanks for the thorough review! |
Closes #223
Problem
AI coding agents (Claude Code, Codex, Cursor) constantly hit port-in-use, zombie servers, and container confusion during local dev — and chain
lsof/ps/netstat/docker psmanually. witr already fixes this via--json, but the README never mentions it, so agents (and humans) don't discover it.Changes
Add Section 8 — Using witr with AI Agents to README.md:
--jsonis the machine-output flag (single parseable line; exit codes already scriptable).witr --port <PORT> --json), stuck process (witr <name> --json/witr --pid <PID> --tree), container (witr --container <name> --verbose --json)..claude/commands/witr.md).--jsonis the one-line structured call.Verification
git diff --checkclean.#72-exit-codesverified against existing### 7.2 Exit Codesheading.